		function pageInit()
			{
				$('#elm1').xheditor({upLinkUrl:"#",upLinkExt:"zip,rar,txt",upImgUrl:"servlet/UploadFileServlet",upImgExt:"jpg,jpeg,gif,png",upFlashUrl:"#",upFlashExt:"swf",upMediaUrl:"upload.php",upMediaExt:"wmv,avi,wma,mp3,mid",onUpload:insertUpload});
			}

			
		//xbhEditor编辑器图片上传回调函数
			function insertUpload(msg) {
				var _msg = msg.toString();
				var _picture_name = _msg.substring(_msg.lastIndexOf("/")+1);
				var _picture_path = Substring(_msg);
				alert(_msg);
				var _str = "<input type='checkbox' name='_pictures' value='"+_picture_path+"' checked='checked' onclick='return false'/><label>"+_picture_name+"</label><br/>";
				$("#elm1").append(_msg);
			//	$("#uploadList").append(_str);
			}
			
			//处理服务器返回到回调函数的字符串内容,格式是JSON的数据格式.
			function Substring(s){
				return s.substring(s.substring(0,s.lastIndexOf("/")).lastIndexOf("/"),s.length);
			}